package com.qidian.mes.device.service.impl;

import com.qidian.common.pojo.MESResult;
import com.qidian.mes.device.mapper.FixMapper;
import com.qidian.mes.device.service.FixService;
import com.qidian.mes.pojo.Fix;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @Author 刘泽磊
 * @Company 起点编程
 * @Description
 * @Time 2024/10/24 16:43
 */
@Service
public class FixServiceImpl implements FixService {
    @Autowired
    private FixMapper fixMapper;
    @Override
    public MESResult select(Fix fix) {
        return MESResult.success(fixMapper.select(fix));
    }

    @Override
    public MESResult insert(Fix fix) {
        return MESResult.success(fixMapper.insert(fix));
    }

    @Override
    public MESResult update(Fix fix) {
        return MESResult.success(fixMapper.update(fix));
    }

    @Override
    public MESResult selectById(Long fixId) {
        return MESResult.success(fixMapper.selectById(fixId));
    }

    @Override
    public MESResult delete(Long fixId) {
        return MESResult.success(fixMapper.delete(fixId));
    }
}
